package com.guavause.graph;

import com.google.common.graph.*;
import org.junit.Test;

/**
 * @author kxd
 * @date 2018/12/4 18:05
 * description:
 */
public class GraphInstanceTest {


    @Test
    public void test01() {

        MutableGraph<Integer> graph = GraphBuilder.undirected().build();

        MutableValueGraph<City, Distance> roads = ValueGraphBuilder.directed().build();

      /*  MutableNetwork<Webpage, Link> webSnapshot = NetworkBuilder.directed()

                .nodeOrder(ElementOrder.natural())
                .build();*/
    }

    class City {

    }

    class Distance {


    }

    class Webpage implements Comparable {

        @Override
        public int compareTo(Object o) {
            return o.hashCode();
        }
    }

    class Link {

    }

}
